home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / telecomm / fnordadl / fn132src.zoo / cith / citlib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-09-02  |  7.2 KB  |  305 lines

  1. /*
  2.  * citlib.h -- global function and variable declarations for the Fnordadel
  3.  *        library (all files in \citlib.)  Generated by `mkptypes'.
  4.  *
  5.  * 90Nov06 AA    Hacked up for gcc/ANSI stuff
  6.  * 90Aug28 AA    Created.
  7.  */
  8.  
  9. #ifndef _CITLIB_H
  10. #define _CITLIB_H
  11.  
  12. #if defined(__STDC__) || defined(__cplusplus)
  13. # define _P(s) s
  14. #else
  15. # define _P(s) ()
  16. #endif
  17.  
  18. /* citlib\cd.c */
  19. int cd _P((char path[]));
  20.  
  21. /* citlib\clock.c */
  22. long upTime _P((void));
  23. clock_t ticksSince _P((clock_t then));
  24. void pause _P((int i));
  25. long timeSince _P((clock_t x));
  26. long timeLeft _P((long p));
  27.  
  28. /* citlib\congetyn.c */
  29. int conGetYesNo _P((char *message));
  30.  
  31. /* citlib\conout.c */
  32. void conout _P((int c));
  33.  
  34. /* citlib\crashout.c */
  35. void crashout _P((char *fmt, ...));
  36.  
  37. /* citlib\crypte.c */
  38. void crypte _P((register char *buf, register unsigned short count, register unsigned short seed));
  39.  
  40. /* citlib\ctdlfile.c */
  41. char *ENDOFSTR _P((char *s));
  42. void ctdlfile _P((char *dest, unsigned short dir, char *fmt, ...));
  43.  
  44. /* citlib\dskspace.c */
  45. int diskSpaceLeft _P((char *path, long *sectors, long *bytes));
  46.  
  47. /* citlib\findmsg.c */
  48. int findMessage _P((short loc, long id));
  49.  
  50. /* citlib\formroom.c */
  51. char *formRoom _P((int roomno, int markprivate));
  52.  
  53. /* citlib\formtime.c */
  54. char *tod _P((int stdTime));
  55. char *formDate _P((void));
  56. char *day_of_week _P((struct tm *clk));
  57.  
  58. /* citlib\fromdesk.c */
  59. int fromdesk _P((void));
  60. void hitkey _P((void));
  61.  
  62. /* citlib\getcd.c */
  63. void getcd _P((PATHBUF path));
  64.  
  65. /* citlib\getdiren.c */
  66. struct dirList *getdirentry _P((char *pattern));
  67.  
  68. /* citlib\getnet.c */
  69. void getNet _P((int n));
  70.  
  71. /* citlib\getroom.c */
  72. void getRoom _P((int rm));
  73. void roomsanity _P((void));
  74.  
  75. /* citlib\getspool.c */
  76. void getstrspool _P((FILE *spl, char *place, register int length));
  77. int getspool _P((FILE *spl));
  78.  
  79. /* citlib\getyesno.c */
  80. int coreGetYesNo _P((char *prompt, int def));
  81. char getYesNo _P((char *prompt));
  82. char getYes _P((char *prompt));
  83. char getNo _P((char *prompt));
  84.  
  85. /* citlib\hangup.c */
  86. void hangup _P((void));
  87.  
  88. /* citlib\hash.c */
  89. short int hash _P((char *str));
  90.  
  91. /* citlib\io.c */
  92. int KBReady _P((void));
  93. int getch _P((void));
  94. void putch _P((register int c));
  95. int MIReady _P((void));
  96. int getraw _P((void));
  97. int getMod _P((void));
  98. void modout _P((register int c));
  99.  
  100. /* citlib\labelcmp.c */
  101. int labelcmp _P((char *p1, char *p2));
  102.  
  103. /* citlib\libarch.c */
  104. char *findArchiveName _P((int room));
  105. void initArchiveList _P((void));
  106. int addArchiveList _P((int room, char *fn));
  107.  
  108. /* citlib\libevent.c */
  109. int minutes _P((int *today));
  110. void initEvent _P((void));
  111. void setUpEvent _P((void));
  112. void doEvent _P((void));
  113.  
  114. /* citlib\libfloor.c */
  115. void updtfloor _P((void));
  116. void loadfloor _P((void));
  117.  
  118. /* citlib\libroute.c */
  119. int findnode _P((char *node, int *cost));
  120. int parsepath _P((char *netpath, char *node, int edit));
  121. void changeto _P((char *oldto, char *firstnode));
  122.  
  123. /* citlib\libtag.c */
  124. int tagSetup _P((void));
  125. void tagClose _P((void));
  126. void putTag _P((char *fname, char *desc));
  127. char *getTag _P((char *fname));
  128. void rewindtag _P((void));
  129.  
  130. /* citlib\locking.c */
  131. int makelock _P((int *p));
  132. void wipelock _P((int *p));
  133.  
  134. /* citlib\modputs.c */
  135. void modputs _P((char *s));
  136.  
  137. /* citlib\msgio.c */
  138. int getmsgchar _P((void));
  139. int getmsgstr _P((char *place, register int length));
  140. int msgseek _P((int sector, int byte));
  141. void wipemsgs _P((short oldsector, short oldchar, short newsector, short newchar));
  142.  
  143. /* citlib\msgio2.c */
  144. void getmessage _P((void));
  145.  
  146. /* citlib\msgtime.c */
  147. time_t msgtime _P((register char *date, register char *time));
  148.  
  149. /* citlib\netnmidx.c */
  150. int netnmidx _P((char *name));
  151.  
  152. /* citlib\nnisok.c */
  153. int NNisok _P((char *node));
  154.  
  155. /* citlib\normalis.c */
  156. void normalise _P((char *s));
  157. void copystring _P((char *s1, char *s2, int size));
  158.  
  159. /* citlib\noteroom.c */
  160. void noteRoom _P((void));
  161. void update_mail _P((void));
  162.  
  163. /* citlib\output.c */
  164. int getnoecho _P((void));
  165. void retfmt _P((void));
  166. void doCR _P((void));
  167. void doNL _P((char c));
  168. void oChar _P((char c));
  169.  
  170. /* citlib\printmsg.c */
  171. void putheader _P((int leftover));
  172. void doPrintMsg _P((int slot));
  173. void prtHdr _P((int slot));
  174. void prtBody _P((void));
  175.  
  176. /* citlib\putnet.c */
  177. void putNet _P((int n));
  178.  
  179. /* citlib\putroom.c */
  180. void putRoom _P((int rm));
  181.  
  182. /* citlib\readtabl.c */
  183. int readSysTab _P((int kill));
  184.  
  185. /* citlib\receive.c */
  186. int receive _P((int seconds));
  187.  
  188. /* citlib\rmalias.c */
  189. struct alias *load_alias _P((char *where));
  190. char *chk_alias _P((struct alias *tab, int sys, char *name));
  191. char *chk_name _P((struct alias *tab, int sys, char *alias));
  192.  
  193. /* citlib\sgetword.c */
  194. int sgetword _P((char *dest, char *source, int offset, int lim));
  195.  
  196. /* citlib\stricmp.c */
  197. int stricmp _P((char *str1, char *str2));
  198.  
  199. /* citlib\strnicmp.c */
  200. int strnicmp _P((char *str1, char *str2, int limit));
  201.  
  202. /* citlib\strupr.c */
  203. char *strupr _P((char *string));
  204.  
  205. /* citlib\timeis.c */
  206. struct tm *timeis _P((struct tm *clk));
  207.  
  208. /* citlib\timers.c */
  209. void startTimer _P((void));
  210. long chkTimeSince _P((void));
  211.  
  212. /* citlib\version.c */
  213.  
  214. /* citlib\writetbl.c */
  215. int writeSysTab _P((void));
  216.  
  217. /* citlib\xfuncs.c */
  218. int xopen _P((char *filename));
  219. void *xmalloc _P((unsigned int size));
  220. char *xstrdup _P((char *string));
  221.  
  222. #undef _P
  223.  
  224.  
  225. /* global variables declared in the library */
  226.  
  227. /* conout.c */
  228. extern char seemodem;        /* See what the modemed user is typing?    */
  229. extern char onConsole;        /* input coming from the console?    */
  230.  
  231. /* formtime.c */
  232. extern char *monthTab[];
  233. extern struct tm now;        /* global clock used by all clock routines */
  234. extern char *_day[];
  235. extern char *_alt_day[];
  236.  
  237. /* getlog.c */
  238. extern struct logBuffer logBuf;        /* Log buffer of a person    */
  239. extern struct logBuffer origlogBuf;    /* logBuf at start of this call    */
  240. extern int logindex;            /* The userlog slot of user    */
  241. extern long highlogin;            /* Highest message at login    */
  242.  
  243. /* getnet.c */
  244. extern struct netBuffer netBuf;
  245. extern int thisNet;
  246. extern int netfl;
  247.  
  248. /* getroom.c */
  249. extern struct aRoom roomBuf;        /* Room buffer            */
  250. extern int roomfl;            /* Room file descriptor     */
  251. extern int thisRoom;            /* Current room         */
  252.  
  253. /* io.c */
  254. extern int active;
  255.  
  256. /* libevent.c */
  257. extern struct evt_type *nextEvt;    /* next event to execute    */
  258. extern int evtRunning;        /* an event is waiting            */
  259. extern char forceOut;        /* next event is preemptive        */
  260. extern long evtClock;        /* time when next event takes place    */
  261. extern long evtTrig;        /* timeLeft trigger for warnings    */
  262. extern char evtChar[];
  263.  
  264. /* libfloor.c */
  265. extern struct flTab *floorTab;        /* floor table            */
  266. extern int thisFloor;            /* current floor        */
  267.  
  268. /* libroute.c */
  269. extern NETADDR route;            /* if path aliased, use this route */
  270. extern char howto;            /* how the node was found    */
  271.  
  272. /* locking.c */
  273. extern char LOCKFILE[];
  274.  
  275. /* msgio.c */
  276. extern struct msgB msgBuf;    /* The -sole- message buffer        */
  277. extern int msgfl;        /* file descriptor for the msg file    */
  278. extern int pullMLoc;
  279. extern long pullMId;
  280. extern short mbindex;
  281. extern short mboffset;
  282. extern char mbsector[];
  283.  
  284. /* output.c */
  285. extern char prevchar;
  286. extern char *CRfill;
  287. extern void (*CRftn)();
  288.  
  289. /* readtabl.c */
  290. extern struct config cfg;
  291. extern struct lTable *logTab;
  292. extern struct netTable *netTab;
  293. extern struct rTable *roomTab;
  294. extern struct evt_type *evtTab;
  295. extern struct poll_t *pollTab;
  296. extern struct zaphash *zap;
  297. extern struct archiver *archTab;
  298. extern char *indextable;
  299.  
  300. /* version.c */
  301. extern char VERSION[];
  302. extern char MACHINE[];
  303.  
  304. #endif /* _CITLIB_H */
  305.